<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
	<head>
		<base href="<%=basePath%>">

		<title>上传文章</title>
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>css/theme.css">
		<link rel="stylesheet"
			href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
		<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
			type="text/javascript"></script>
	</head>

	<body class="content1">
		<div class="header">
			<h1 class="page-title">
				上传文章
			</h1>
		</div>

		<ul class="breadcrumb">
			<li>
				<a href="index.html">文章管理</a>
				<span class="divider">/</span>
			</li>
			<li class="active">
				文章上传
			</li>
		</ul>

		<div class="container-fluid">
			<div class="row-fluid">
				<form method="post" action="<%=basePath%>sys/article/article?cmd=upload">
					<div class="btn-toolbar">
						<input type="submit" class="btn btn-primary" value="保存修改 ">
						<a href="<%=basePath%>sys/article/article?cmd=listForUploaderAndAdmin" class="btn">取消</a>

					</div>

					<div class="well">
						<div class="tab-pane active in">
							<%-- 错误提示信息 --%>
							<div style="color: red">
								${msg}
							</div>
							<br>
							
							<table  border="1" width = "100%">
							  <tr>
							    <td><label>文章标题：</label></td>
							    <td><input type="text" name="title" maxlength="50"></td>
							    
							    <td><label>文章主题：</label></td>
							    <td><input type="text" name="theme" maxlength="20"></td>
							  </tr>
							  
							  <tr>
							    <td><label>文章类型：</label></td>
							    <td>
							    	<select name="classid">
										<c:forEach items="${classlist}" var="class">
											<option value="${class.classid}">
												${class.cname}
											</option>
										</c:forEach>
									</select>
							    </td>
							    
							    <td><label>责任编辑：</label></td>
							    <td><input type="text" name="editor" maxlength="10"></td>
							  </tr>
							  <tr>
							    <td><label>文章来源：</label></td>
							    <td><input type="text" name="source" maxlength="10"></td>
							    
							    <td><label>是否图文：</label></td>
							    <td>
							    	<select name="isillustrated">
										<option value="1">是</option>
										<option value="0">否</option>
									</select> 
							    </td>
							  </tr>
							  
							  <tr>
							    <td><label>文章内容：</label></td>
							    <td colspan="3">
							    	<%-- fckeditor插件 --%>
									<FCK:editor instanceName="content" height="800"> 
										<jsp:attribute name="value" > 请在这里输入您的内容...</jsp:attribute> 
									</FCK:editor>
							    </td>
							  </tr>
							</table>
						</div>
					</div>
				</form>
			</div>
		</div>
	</body>
</html>
